<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pagenav test</title>
<head>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="pagenav.min.js"></script>
<style type="text/css" media="screen">
a { color:#2B4A78; text-decoration:none; }
	a:hover { color:#2B4A78;text-decoration:underline; }
	a:focus, input:focus {outline-style:none; outline-width:medium; }

/* custom css style: pageNum,cPageNum */
.pageNum{border: 1px solid #999;padding:2px 8px;display: inline-block;}
.cPageNum{font-weight: bold;padding:2px 5px;}
#pageNav a:hover{text-decoration:none;background: #fff4d8; }

</style>

<script>
$(function(){
	//optional set
	pageNav.pre="NEXT";
	pageNav.next="PRE";
	
	 //  p:current page number.  
	 //  pn: page sum.
	pageNav.fn = function(p,pn){
		$("#test").text("Page:"+p+" of "+pn + " pages.");
	};
	
	//goto the page 3 of 33.
	pageNav.go(3,33);
	
});
  </script>

</head>
<body>
<div id="test" style="height:70px;padding:30px 10px;font-size: 300%;"></div>

<div id="pageNav"></div>
 
</body>
<html>